package com.suzhe.ymall.common.enums;

public enum ApiCode {

    SUCCESS(0,"SUCCESS"),
    ERROR(-1,"ERROR"),

    NEED_LOGIN(100001,"ERROR"),
    AUTH_FAILURE(100002,"ERROR"),
    ;

    private final int code;
    private final String desc;


    ApiCode(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }

}
